package cn.edu.scau.cmi.zenghaonan.chapter04;


public class PrimeNumber {

	public static void main(String[] args) {
		int i,j;
		for(i=2;i<1000;i++) {
			int T=0;
			for(j=2;j<=Math.sqrt(i);j++) {
				if(i%j==0) {
					T=1;
				}
			}
			if(T==0)
				System.out.println(i);
		}

	}

}
